package com.lagou.demo.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Service
@FeignClient("lagou-service-email")
public interface EmailServiceI {

    @PostMapping("/email/{email}/{code}")
    public Boolean sendEmail(@PathVariable("email") String sendTo, @PathVariable("code") String content);
}
